package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SocDispatchExample.E_ADD_OR_LESS;
import static org.jsola.hr.example.SocDispatchExample.E_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchExample.E_HAS_RECEIVE;
import static org.jsola.hr.example.SocDispatchExample.E_HAS_SEND;
import static org.jsola.hr.example.SocDispatchExample.E_MONTH;
import static org.jsola.hr.example.SocDispatchExample.E_NAME;
import static org.jsola.hr.example.SocDispatchExample.E_YEAR;
import static org.jsola.hr.example.SocDispatchExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocDispatchExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SocDispatchExample.M_MONTH_MAX;
import static org.jsola.hr.example.SocDispatchExample.M_NAME_MAX;
import static org.jsola.hr.example.SocDispatchExample.M_YEAR_MAX;
import static org.jsola.hr.example.SocDispatchExample.N_ADD_OR_LESS;
import static org.jsola.hr.example.SocDispatchExample.N_COMPANY_ID;
import static org.jsola.hr.example.SocDispatchExample.N_HAS_RECEIVE;
import static org.jsola.hr.example.SocDispatchExample.N_HAS_SEND;
import static org.jsola.hr.example.SocDispatchExample.N_MONTH;
import static org.jsola.hr.example.SocDispatchExample.N_NAME;
import static org.jsola.hr.example.SocDispatchExample.N_YEAR;

/**
 * 社保派单记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保派单记录表】的参数")
@Data
public class SocDispatchAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    @Length(max = 12, message = M_YEAR_MAX)
    private String year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    @Length(max = 10, message = M_MONTH_MAX)
    private String month;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 100, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_ADD_OR_LESS, example = E_ADD_OR_LESS)
    private Boolean addOrLess;

    @ApiModelProperty(notes = N_HAS_SEND, example = E_HAS_SEND)
    private Boolean hasSend;

    @ApiModelProperty(notes = N_HAS_RECEIVE, example = E_HAS_RECEIVE)
    private Boolean hasReceive;


}

